package cordechasse.air {

	import flash.desktop.NativeApplication;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;

	/**
	 * @author cordechasse
	 * @project TestAIRDesktop
	 * @date 25 avr. 2012
	 */
	public class AIRApplication extends Sprite {

		public function AIRApplication() {
			
			var descriptor:XML = NativeApplication.nativeApplication.applicationDescriptor;
		    var ns:Namespace = descriptor.namespaceDeclarations()[0];
		    var versionNumber : String = descriptor.ns::versionNumber;
			
			var tf : TextField = new TextField();
			tf.autoSize = TextFieldAutoSize.LEFT;
			tf.text = "AirApplication v" + versionNumber;
			addChild(tf);
		}
	}
}
